package com.dianban.base;

/**
 * 接口编码
 *
 * @author wujh
 * @create 2019-12-28
 */
public enum ResultCode {

	// 成功 例如：响应状态码为　1XX、2XX和3XX
	SUCESS("200", "{0}"),

    // 错误　响应码在　400-499
	ERROR("400","{0}"),
	ERROR410("410","请求头shopUserToken为空"),
	ERROR411("411","请求头shopUserToken过期"),
	ERROR412("412","请求头userToken为空"),
	ERROR413("413","请求头userToken过期"),
	ERROR420("420","福利券余额不足"),
	ERROR421("421","积分不足"),
	ERROR422("422","余额不足"),
	ERROR423("423","金豆不足"),
	ERROR430("430","您有待支付的订单，请先支付！"),

	// 失败 响应码在　500-599
	WEIXIN_PAY_UNKNOWN("590","微信支付状态未知，请调用支付查询接口进行查询！"),

	FAIL("500","服务器异常，请稍后再试！");


	private String code;

	private String title;

	private ResultCode(String code, String title) {
		this.code = code;
		this.title = title;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

}
